import request from '@/utils/request'

// 查询整改信息列表
export function listImprovement(query) {
  return request({
    url: '/coordination/improvement/list',
    method: 'get',
    params: query
  })
}

// // 查询整改信息详细
// export function getImprovement(id) {
//   return request({
//     url: '/coordination/improvement/' + id,
//     method: 'get'
//   })
// }

// 查询整改信息详细
export function getImprovement(id) {
  return request({
    url: '/coordination/improvement/detailList/' + id,
    method: 'get'
  })
}



// 新增整改信息
export function addImprovement(data) {
  return request({
    url: '/coordination/improvement',
    method: 'post',
    data: data
  })
}

// 修改整改信息
export function updateImprovement(data) {
  return request({
    url: '/coordination/improvement/edit',
    method: 'put',
    data: data
  })
}

// 删除整改信息
export function delImprovement(id) {
  return request({
    url: '/coordination/improvement/' + id,
    method: 'delete'
  })
}


//整改信息
export function addImprovementList(data) {
  return request({
    url: '/coordination/improvement' ,
    method: 'post',
    data
  })
}


//是否自查
export function isExist(data) {
  return request({
    url: '/coordination/improvement/exist' ,
    method: 'post',
    data
  })
}

// 查询整改信息详细
export function getImprovementLeft(id) {
  return request({
    url: '/coordination/improvement/' + id,
    method: 'get'
  })
}



// 查询整改信息详细
export function getImprovementRight(id) {
  return request({
    url: '/coordination/improvement/detailList/' + id,
    method: 'get'
  })
}


// 修改整改信息
export function updateImprovementRight(data) {
  return request({
    url: '/coordination/improvement',
    method: 'put',
    data: data
  })
}

// 删除整改信息
export function delImprovementRight(id) {
  return request({
    url: '/coordination/detail/' + id,
    method: 'delete'
  })
}




